<!DOCTYPE html>
<html>
<head>
    <title>受教日程</title>
		<#include "/header.html">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap-datetimepicker.css">
    <script src="${request.contextPath}/statics/libs/bootstrap.min.js"></script>
    <script src="${request.contextPath}/statics/libs/datetimePick/bootstrap-datetimepicker.js"></script>
    <script src="${request.contextPath}/statics/libs/datetimePick/bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-1">
                <input type="text" class="form-control" v-model="q.courseDay" id="courseDay"  @keyup.enter="query" placeholder="日期">
            </div>
            <div class="form-group col-sm-1">
                <select class="form-control"  v-model="q.laboratoryId"  @keyup.enter="query"   >
                    <option value="" >选择实验室</option>
                    <option  v-for="(laboratory,i) in allLaboratory" :value='laboratory.id' >{{laboratory.name}}</option>
                </select>
            </div>

            <div class="form-group col-sm-1">
                <input type="text" class="form-control" v-model="q.studentName" @keyup.enter="query" placeholder="学生名字">
            </div>
            <div class="form-group col-sm-1">
                <input type="text" class="form-control" v-model="q.courseName" @keyup.enter="query" placeholder="课程">
            </div>
            <div class="form-group col-sm-1">
                <input type="number" class="form-control" v-model="q.batch" @keyup.enter="query" placeholder="课程批次">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-default" @click="closeAll">一键关闭</a>
			<!--<#if shiro.hasPermission("sys:jxstudentschedule:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:jxstudentschedule:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:jxstudentschedule:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">当前预定时间为：{{selectLaboratory.begainTime}}  到{{selectLaboratory.endTime}}</div>
        <form class="form-horizontal">
						<div class="form-group">
                        <div class="col-sm-2 control-label">可选实验室</div>
                        <div class="col-sm-10">
                            <select class="form-control"   @change="changeLaboratory($event)"   >
                                <option >选择实验室</option>
                                <option  v-for="(laboratory,i) in mixLaboratory" :value='laboratory.id' >{{laboratory.laboratoryName}}</option>
                            </select>
                        </div>
                    </div>

            <div class="form-group" v-show="showDevice">
                <div class="col-sm-2 control-label">可选设备</div>
                <div class="col-sm-10">
                    <div v-for="(device,i) in  mixDevices">
                 <input type="radio" name="status"  id="selectDeviceId"  :value="device.id"  v-model="selectDeviceId"  />
                        {{device.deviceName}}
                   </div>
                </div>
            </div>



							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/jxstudentschedule.js?_${.now?long}"></script>
</body>
</html>